﻿using System.ComponentModel.DataAnnotations;
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;

namespace T.E.ERP.Write.API.Applicantions.Command.MyOrderMementCommand
{
    /// <summary>
    /// 订单工单基础信息新增命令
    /// </summary>
    public class OrdermementCommand:IRequest<APIResult<int>>
    {
        public int Oid { get; set; }
        /// <summary>
        /// 采购主题
        /// </summary>
        public string? GetMaintitle { get; set; }
        ///// <summary>
        ///// 登录人
        ///// </summary>
        //public string? LoginName { get; set; }
        /// <summary>
        /// 采购订单系统生成
        /// </summary>
        public string? OrderCode { get; set; }
        /// <summary>
        /// 关联请购
        /// </summary>
        public int JoinGetOrderid { get; set; }
        /// <summary>
        /// 关联销售订单
        /// </summary>
        public int JoinShouOrderid { get; set; }
        /// <summary>
        /// 采购日期
        /// </summary>
        public DateTime? SaleDate { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public int GongName { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string? LianName { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? PhoneNumber { get; set; }
        /// <summary>
        /// 采购人员
        /// </summary>
        public string? ByName { get; set; }
        /// <summary>
        /// 采购部门
        /// </summary>
        public string? ByDepart { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string? LianPhone { get; set; }
        /// <summary>
        /// 管理项目
        /// </summary>
        public int JoinProject { get; set; }
        /// <summary>
        /// 结算方式
        /// </summary>
        public int SuanType { get; set; }
        /// <summary>
        /// 结算地址
        /// </summary>
        public string? Address { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remember { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public int SumMoney { get; set; }
        /// <summary>
        /// 已付金额
        /// </summary>
        public int YfuMoney { get; set; }
        /// <summary>
        /// 已到票金额
        /// </summary>
        public int YdpMoney { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public States ShenpStuct { get; set; }
        /// <summary>
        /// 付款状态
        /// </summary>
        public string? FukuanStuct { get; set; }
        /// <summary>
        /// 入库状态
        /// </summary>
        public string? RukuStuct { get; set; }
        /// <summary>
        /// 到票状态
        /// </summary>
        public string? DpiaoStuct { get; set; }
    }
}
